<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
    	$nav=M('nav')->select();
        $this->assign('nav',$nav);
        $link=M('link')->select();
        $this->assign('link',$link);
        $cat_pro=M('cat_pro')->select();
        $this->assign('cat_pro',$cat_pro);
        $product=M('product')->select();
        $this->assign('product',$product);
        $art=M('article')->order('art_addtime desc')->limit(4)->select();
        $this->assign('art',$art);
        $banner=M('banner')->where("banner_position=1")->select();
        $this->assign('banner',$banner);
        $logo=M('config')->where("con_title='logo'")->find();
        $this->assign('logo',$logo);
        $page=M('page')->where("page_name='关于我们'")->find();
        $this->assign('page',$page);
        $icp=M('config')->where("con_title='备案号'")->find();
        $this->assign('icp',$icp);
        $this->display();
    }
}